* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    text-decoration: none;
    color: #000;
    list-style: none;
}
body {
    background-image: linear-gradient(to Bottom,#eafbff 0%,#eafbff 50%,#5290f9 50%,#5290f9 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
nav {
    width: 80px;
    background-color: #fff;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.6s linear;
    border-radius: 5px;
    box-shadow: 2px 5px 6px rgba(0, 0, 0, 0.3);
}
nav.active {
    width: 350px;
}
nav ul {
    width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.6s linear;
}
nav.active ul {
    width: 100%;
    margin-right: 5px;
}
nav ul li {
    opacity: 0;
    margin:0 10px;
    transition: all 0.6s linear;
}
nav.active ul li {
    opacity: 1;
    transform: rotateY(360deg);
}
nav .icon {
    width: 30px;
    height: 30px;
    background-color: #fff;
    border: none;
    position: relative;
    cursor: pointer;
}
.icon .line {
    width: 20px;
    height: 2px;
    background-color: #5290f9;
    position: absolute;
    top: 10px;
    left: 5px;
    transition: all 0.6s linear;
}
.icon .line2 {  
    top: 18px;
}
nav.active .icon .line1 {
    transform: rotate(-765deg) translateX(-5.5px);
}
nav.active .icon .line2 {
    transform: rotate(765deg) translateX(-5.5px);
}

